Skip to content

A May of WTFs: Raise exception for assets declared without extension #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

A May of WTFs: Raise exception for assets declared without extension #461

wants to merge 1 commit into from

Conversation

lfv89
Copy link

@lfv89 lfv89 commented May 14, 2020

Basically, it is possible to use <%= image_tag('logo') %> on development without any issues, but in production this always break because the file is not found without its extension.

This has also been reported on: #403, #305 and https://discuss.rubyonrails.org/t/rails-6-0-2-image-tag-logo-works-in-development-but-crashes-in-production/74901/7

I tried to add the least amount of code to "fix" the problem.

Let me know what you think.

@lfv89 lfv89 marked this pull request as draft May 18, 2020 16:10
@lfv89
Copy link
Author

lfv89 commented May 25, 2020

@rafaelfranca any thoughts?

build is breaking but it doesn't seem related.

@lfv89 lfv89 closed this Jun 20, 2020
@v2px
Copy link

v2px commented Aug 11, 2020

Why was this closed? Still seems relevant to me and I just tripped over it in my Rails 6 deploy.

@lfv89
Copy link
Author

lfv89 commented Aug 11, 2020

I closed it because sadly it doesn't look like there is any interest on fixing this ATM.

If I'm wrong I can gladly reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants